home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.2 KB | 43 lines | [TEXT/GEOL] |
- Item 1287789 19-Jan-91 06:51PST
-
- From: GER.XSE0096 Germany - Ciechowski Computer,IDV
-
- To: MACAPP.TECH$ MacApp Technical
-
- Item forwarded by SPA.DTS to SPA0144
-
- ------------------------------------------------------------------------------
-
- Sub: ?HELP? adding Items to TPopup
-
- I want to add and remove Items from a Popup-Menu in one of my TDialog-Views. I
- tried to override the TPopup::IRes - Method as follows
-
- pascal voidTBankPopup::IRes(TDocument *Doc, TView *SView, Ptr *Param)
- //
- // Add some Items to the current menu
- {
- TPopup::IRes(Doc, SView, Param); //call original
- shortmenuID, item;
- CmdToMenuItem(kBKnone, &menuID, &item); // get Resource-Infos
- MenuHandle theMenu = GetMHandle(menuID); // get MenuHandle
- AppendMenu(theMenu, "\pMy new Item"); // append new Item
- }
-
-
- … but this doesn´t do anything (I think this is because AppendMenu only works
- with menus from the menu-bar)
-
-
- Any ideas are welcome.
-
- Ingo
-
-
-
-
- PS: I still don´t know how to save & restore a Windows (TWindow) position
- in case I don´t want go back to MacOS.
- Is there any good mechanism provided by MacApp ??
-
-